package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.RecruitmenPlanBill;
import cn.wolfcode.crm.mapper.RecruitmenPlanBillMapper;
import cn.wolfcode.crm.service.IRecruitmenPlanBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecruitmenPlanBillImpl implements IRecruitmenPlanBillService {

    @Autowired
    private RecruitmenPlanBillMapper recruitmenPlanBillMapper;

    public void deleteByPlanId(Long id) {
        recruitmenPlanBillMapper.deleteByPlanId(id);
    }

    public void insert(RecruitmenPlanBill recruitmenPlanBill) {
        recruitmenPlanBillMapper.insert(recruitmenPlanBill);
    }

    public RecruitmenPlanBill selectByPrimaryKey(Long id) {
        return recruitmenPlanBillMapper.selectByPrimaryKey(id);
    }

    public List<RecruitmenPlanBill> getListByPlanId(Long id) {
        return recruitmenPlanBillMapper.getListByPlanId(id);
    }

    public void updateByPrimaryKey(RecruitmenPlanBill recruitmenPlanBill) {
        recruitmenPlanBillMapper.updateByPrimaryKey(recruitmenPlanBill);
    }

}
